extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]电动扬弹机"
	att.cd = 0.2
	att.spd = 0.5
	info = "造成技能伤害时获得2层<速攻>(内置冷却1秒)\n[color=#DC143C]同时装备三件时可升级[/color]"
	
func _connect():
	._connect()
	masCha.connect("onAtkChara", self, "onAtkChara")

var enable = true
func _upS():
	enable = true

func onAtkChara(atkInfo):
	if atkInfo.atkType == sys.AtkType.SKILL and enable:
		enable = false
		masCha.addBuff(buff.b_suGong.new(2))

func upgrade():
	name = "[color=#FFFF00][史诗]电动扬弹机"
	info = "造成技能伤害时获得2层<速攻>(内置冷却1秒)"
	att.cd = 0.4
	att.spd = 1